package com.jspm.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;


/**
 * 股票信息
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2022-03-20 09:49:25
 */
@TableName("gupiaoxinxi")
public class GupiaoxinxiEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public GupiaoxinxiEntity() {
		
	}
	
	public GupiaoxinxiEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 股票号码
	 */
					
	private String gupiaohaoma;
	
	/**
	 * 股票名称
	 */
					
	private String gupiaomingcheng;
	
	/**
	 * 股票板块
	 */
					
	private String gupiaobankuai;
	
	/**
	 * 股票涨势
	 */
					
	private String gupiaozhangshi;
	
	/**
	 * 价格
	 */
					
	private Float jiage;
	
	/**
	 * 图片
	 */
					
	private String tupian;
	
	/**
	 * 实时时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat 		
	private Date shishishijian;
	
	/**
	 * 股票详情
	 */
					
	private String gupiaoxiangqing;
	
	/**
	 * 赞
	 */
					
	private Integer thumbsupnum;
	
	/**
	 * 踩
	 */
					
	private Integer crazilynum;
	
	/**
	 * 最近点击时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat 		
	private Date clicktime;
	
	/**
	 * 点击次数
	 */
					
	private Integer clicknum;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：股票号码
	 */
	public void setGupiaohaoma(String gupiaohaoma) {
		this.gupiaohaoma = gupiaohaoma;
	}
	/**
	 * 获取：股票号码
	 */
	public String getGupiaohaoma() {
		return gupiaohaoma;
	}
	/**
	 * 设置：股票名称
	 */
	public void setGupiaomingcheng(String gupiaomingcheng) {
		this.gupiaomingcheng = gupiaomingcheng;
	}
	/**
	 * 获取：股票名称
	 */
	public String getGupiaomingcheng() {
		return gupiaomingcheng;
	}
	/**
	 * 设置：股票板块
	 */
	public void setGupiaobankuai(String gupiaobankuai) {
		this.gupiaobankuai = gupiaobankuai;
	}
	/**
	 * 获取：股票板块
	 */
	public String getGupiaobankuai() {
		return gupiaobankuai;
	}
	/**
	 * 设置：股票涨势
	 */
	public void setGupiaozhangshi(String gupiaozhangshi) {
		this.gupiaozhangshi = gupiaozhangshi;
	}
	/**
	 * 获取：股票涨势
	 */
	public String getGupiaozhangshi() {
		return gupiaozhangshi;
	}
	/**
	 * 设置：价格
	 */
	public void setJiage(Float jiage) {
		this.jiage = jiage;
	}
	/**
	 * 获取：价格
	 */
	public Float getJiage() {
		return jiage;
	}
	/**
	 * 设置：图片
	 */
	public void setTupian(String tupian) {
		this.tupian = tupian;
	}
	/**
	 * 获取：图片
	 */
	public String getTupian() {
		return tupian;
	}
	/**
	 * 设置：实时时间
	 */
	public void setShishishijian(Date shishishijian) {
		this.shishishijian = shishishijian;
	}
	/**
	 * 获取：实时时间
	 */
	public Date getShishishijian() {
		return shishishijian;
	}
	/**
	 * 设置：股票详情
	 */
	public void setGupiaoxiangqing(String gupiaoxiangqing) {
		this.gupiaoxiangqing = gupiaoxiangqing;
	}
	/**
	 * 获取：股票详情
	 */
	public String getGupiaoxiangqing() {
		return gupiaoxiangqing;
	}
	/**
	 * 设置：赞
	 */
	public void setThumbsupnum(Integer thumbsupnum) {
		this.thumbsupnum = thumbsupnum;
	}
	/**
	 * 获取：赞
	 */
	public Integer getThumbsupnum() {
		return thumbsupnum;
	}
	/**
	 * 设置：踩
	 */
	public void setCrazilynum(Integer crazilynum) {
		this.crazilynum = crazilynum;
	}
	/**
	 * 获取：踩
	 */
	public Integer getCrazilynum() {
		return crazilynum;
	}
	/**
	 * 设置：最近点击时间
	 */
	public void setClicktime(Date clicktime) {
		this.clicktime = clicktime;
	}
	/**
	 * 获取：最近点击时间
	 */
	public Date getClicktime() {
		return clicktime;
	}
	/**
	 * 设置：点击次数
	 */
	public void setClicknum(Integer clicknum) {
		this.clicknum = clicknum;
	}
	/**
	 * 获取：点击次数
	 */
	public Integer getClicknum() {
		return clicknum;
	}

}
